package com.itheima.jobs;

import cn.hutool.core.date.DateTime;
import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingService;


/**
 * @description:
 * @author: tantan
 * @date: 2020/4/18-1:23
 * @Version: 1.0.0
 */
public class ClearOrderSetting {
    @Reference
    OrderSettingService orderSettingService;
    public void run() {
        DateTime now = new DateTime();
        String nowStr = now.toString("yyyy-MM-dd");
        orderSettingService.clearOrderSetting(nowStr);
    }
}
